#include <iostream>
#include <string>
int main(void) {
  using namespace std;
  cout << "Enter grades:\n";
  while (cin >> grade && grade >= 0 && grade <= 100) {
    finalgrade = (grade > 90) ? "high pass"
                : (grade > 75) ? "pass"
                : (grade > 60) ? "low pass" : "fail";
    cout << "the grade rank is: " << finalgrade << endl;
    cout << "Enter grades:\n";
  }

  return 0;
}
